package myJs.myPkg

import slinky.core._
import slinky.core.annotations.react

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
import org.scalajs.dom.History
import slinky.core.facade.ReactElement
import slinky.web.html.a

/**
 * Created by yz on 7/2/2022
 */

@JSImport("react-transition-group", JSImport.Default)
@js.native
object ReactTransitionGroup extends js.Object {

  val TransitionGroup: js.Object = js.native

  val CSSTransition: js.Object = js.native

}


@react object TransitionGroup extends ExternalComponent {

  case class Props(
                    )

  override val component = ReactTransitionGroup.TransitionGroup

}

@react object CSSTransition extends ExternalComponent {

  case class Props(key: js.UndefOr[String] = js.undefined, classNames: String, timeout: Int,
                   location: js.UndefOr[Location] = js.undefined)

  override val component = ReactTransitionGroup.CSSTransition

}


